package cn.skyquant.quant4j.api.goods;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class GoodsTickDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    public Integer id;
    public Double ask;
    public Double askVolumn;
    public Double bid;
    public Double bidVolumn;
    public Date thedate;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof GoodsTickDTO)) return false;
        GoodsTickDTO that = (GoodsTickDTO) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
